Skip to main content

ASwitch

Complete API reference for ASwitch, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Android Views

Component: no


public class ASwitch extends Switch

Constructors

SignatureDescription
ASwitch()Creates a new instance of ASwitch.

Methods

SignatureReturnsDescription
getViewID()StringReturns the current view id.
findByID(String)<T extends View> TPerforms the findByID operation using the provided parameters (id).
setOnGenericMotionListener(OnGenericMotionListener)voidSets or updates the on generic motion listener.
setOnLongClickListener(OnLongClickListener)voidSets or updates the on long click listener.
setOnClickListener(OnClickListener)voidSets or updates the on click listener.
setOnTouchListener(OnTouchListener)voidSets or updates the on touch listener.
setOnHoverListener(OnHoverListener)voidSets or updates the on hover listener.
setOnDragListener(OnDragListener)voidSets or updates the on drag listener.
setOnKeyListener(OnKeyListener)voidSets or updates the on key listener.
setOnScrollChangeListener(OnScrollChangeListener)voidSets or updates the on scroll change listener.
setOnFocusChangeListener(OnFocusChangeListener)voidSets or updates the on focus change listener.
setOnCreateContextMenuListener(OnCreateContextMenuListener)voidSets or updates the on create context menu listener.